<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%advertiser_map}}".
 *
 * @property integer $id
 * @property string $vam_advertiser_id
 * @property string $name
 * @property integer $ad_network_id
 * @property string $advertiser_id
 * @property string $commit_status
 * @property string $type
 * @property string $content
 * @property string $effect_status
 * @property string $submit_date
 * @property string $expire_date
 * @property integer $status
 * @property string $last_update
 */
class AdvertiserMap extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%advertiser_map}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['vam_advertiser_id', 'name', 'ad_network_id', 'advertiser_id'], 'required'],
            [['ad_network_id', 'status'], 'integer'],
            [['last_update'], 'safe'],
            [['vam_advertiser_id', 'advertiser_id'], 'string', 'max' => 64],
            [['name'], 'string', 'max' => 128],
            [['commit_status', 'type', 'content', 'effect_status'], 'string', 'max' => 512],
            [['submit_date', 'expire_date'], 'string', 'max' => 19]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'vam_advertiser_id' => 'Vam Advertiser ID',
            'name' => 'Name',
            'ad_network_id' => 'Ad Network ID',
            'advertiser_id' => 'Advertiser ID',
            'commit_status' => 'Commit Status',
            'type' => 'Type',
            'content' => 'Content',
            'effect_status' => 'Effect Status',
            'submit_date' => 'Submit Date',
            'expire_date' => 'Expire Date',
            'status' => 'Status',
            'last_update' => 'Last Update',
        ];
    }
}
